The TextField Component > FTextField.getValidationFunction()

 

FTextField.getValidationFunction()

Availability

Flash Player 6.

Usage

myTextField_txf.getValidationFunction ()

Parameters

none

Returns

Returns an object containing the name of the validation function, and the scope that the function will run within.

Description

Returns an object containing the name of the function that will be used to validate user input, and the scope that the function will run within. The two properties are validationFnc, validationScope.

validationFnc

A string specifying the name of the function that is used to validate user input.

validationScope

If defined, an Object whose scope the validation function is run within.

 

Example

The following code gets the validation function and traces its string reference and scope.

var fnc = myTextField_txf.getValidationFunction();
trace(fnc.validationFnc);
trace(fnc.validationScope);

 

See also

FTextField.setValidationFunction()